﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WcfServiceBomberman.MatchMaking
{
    class RangedPlayer : IComparable<RangedPlayer>
    {
        private uint range;
        public Player player { get; private set; }
        public RangedPlayer(Player target, Player reference)
        {
            this.player = target;
            range = target.range(reference);
        }

        public int CompareTo(RangedPlayer other)
        {
            if (range > other.range)
                return 1;
            if (range < other.range)
                return -1;
            else
                return 0;            
        }
    }
}
